import java.util.Scanner;
    class Main {
        public static void main(String[] args) {
            Scanner scan=new Scanner(System.in);
            System.out.println("请输入年份");
            int year= scan.nextInt();
            if((year/1000<=1)||(year/1000>=10)){
            System.out.println("请输入正确的年份");
            }
            else if ((year/1000>=1)&&(year/1000<=10)&&((year%4!=0)||(year%400!=0)&&(year%100!=0))){
                System.out.println("输入年份正确"+" "+year+"是平年");
            }
            else if((year/1000>1)&&(year/1000<10)&&((year%4==0)||(year%400==0)&&(year%100==0))){
                System.out.println("输入年份正确"+" "+year+"是闰年");
            }
            else{
                System.out.println("程序结束");
            }

        }
    }
